package com.ihr360.payroll.model.dto.salary.plan.idclass;

import java.io.Serializable;
public class SalaryPlanStaffId implements Serializable {
    private Long salaryPlanId;
    private String staffId;

    public Long getSalaryPlanId() {
        return salaryPlanId;
    }

    public void setSalaryPlanId(Long salaryPlanId) {
        this.salaryPlanId = salaryPlanId;
    }

    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SalaryPlanStaffId that = (SalaryPlanStaffId) o;

        if (salaryPlanId != null ? !salaryPlanId.equals(that.salaryPlanId) : that.salaryPlanId != null) return false;
        return !(staffId != null ? !staffId.equals(that.staffId) : that.staffId != null);

    }

    @Override
    public int hashCode() {
        int result = salaryPlanId != null ? salaryPlanId.hashCode() : 0;
        result = 31 * result + (staffId != null ? staffId.hashCode() : 0);
        return result;
    }
}